/**
 * 	好友 操作类
 */
var FriendAction = {
		
		/*
		 * 展开评论
		 */
		_addFriendHtml:function($uid)
		{		
			$.ajax({
				  url: "/index.php?r=profile/allowadd",
				  data: {'uid':$uid},
				  success: function(data){
					  if(data._allow > 0)
						  Boxy.load('/index.php?r=profile/friendhtml&uid='+$uid, {title: "添加熟人",unloadOnHide:true,modal:true});
					  else
						  Boxy.alert("对方禁止加为熟人！", function() {},{title: "提示",unloadOnHide:true,modal:true});
				  },
				  dataType: "json"
				});
		}
}